package com.xiaobai.frame.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 第三方登录数据表
 * </p>
 *
 * @author author
 * @since 2024-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("client_details")
@Tag(name="ClientDetails对象", description="第三方登录数据表")
public class ClientDetails implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;

    @Schema(description = "系统id")
    private String clientId;

    @Schema(description = "类别")
    private String category;

    @Schema(description = "第三方名字")
    private String clientName;

    @Schema(description = "服务图标")
    private String clientIcon;

    @Schema(description = "访问密钥")
    private String clientSecret;

    @Schema(description = "重定向到的url")
    private String webServerRedirectUrl;

    @Schema(description = "token的过期时间")
    private Integer accessTokenValidity;

    @Schema(description = "刷新token的过期时间")
    private Integer refreshTokenValidity;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "逻辑删除")
    @TableField
    private int isDeleted;


}
